// 扫描目录下的png图片文件
const fs = require('fs')

module.exports = {
  scan: function (req, res) {
    var path = __dirname.substring(0, __dirname.length - 6)
    fs.readdir(path, function (error, files) {
      console.log(files)
    })
  },
}
